<?php
//
defined('BY_JYA') or exit('error');
$item=$this->setting;
if(!$_RQ['fromuser']){
	$return['ischecklogin']=$this->model('member')->checklogin();
}else{
	$return['isfromuser']=1;
}
$mid=$_RQ['fromuser']?:$_SESSION['uid'];
$return['member']=model('core/member')->detail($mid);
$return['appregister']=custom_url('jy_tiffany/member.appregister//fromuser='.$mid,true);
$return['qrcode']=cfc('tools')->createqrcode($return['appregister'],'320',true);
$return['qrcode']=tomedia($return['qrcode']);
$return['item']=$item;
$return['tips']='扫码下面二维码，前往下载安装本平台的APP';
$return['sharedata']=array(
			'title'=>$item['title']?$item['title'].'APP下载安装':'我的小店APP下载安装',
			'desc'=>$item['share_desc']?:'欢迎光临，我的小店！！',
			'link'=>custom_url('jy_tiffany/getapp//fromuser='.$mid,true),
			'imgUrl'=>tomedia($item['logo']),
);
set_html('title','下载APP');
exi($return);
?>